package com.example.commons.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JacksonInject;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;
import java.util.Map;


/**
 * 
 * <pre>
 * 考试答卷
 * </pre>
 * <small> 2020-02-24 21:04:54 | lance</small>
 */
@Data
@SuppressWarnings("serial")
@TableName("jz_examination_answer_practice_sheet")
//这是的这里继承的基础服务类，有几个基本字段
public class ExaminationAnswerPracticeSheetDO implements Serializable {
	@TableId
	private Long id;

    /** 考试试卷名称 */
    @TableField(exist = false)
    private String epaperName;

    /**  */
    @TableField("epaper_id")
    private Long epaperId;

    /** 刷题证书ID */
    @TableField("profile_id")
    private Long profile_id;

    /** 刷题证书ID */
    @TableField(exist = false)
    private String profileName;

//    /** 0试题练习 1师资考试 */
//    @TableField("sheet_type")
//    private Long sheet_type;


    /** 考试试卷id */
    @TableField("grade")
    private Long grade;

    /** 考生信息id（考生） */
    @TableField("stu_sign_id")
    private String stuSignId;
    //考生信息名
    @TableField(exist = false)
    private String stuName;

    /** 状态（0正常，1已阅卷，9已删除） */
    @TableField("state")
    private Integer state;

    /** 答案集合（试题id+答案） */
    @TableField("answer_list")
    private String answerList;

    @TableField(exist = false)
    private List<Map> answerLists;

    @TableField("score")
    private Integer score;
    /**
     * 时间日期返回格式注解
     */
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDateTime create_time;
    //错误数量
    @TableField("error")
    private Integer error;
    //正确数量
    @TableField("success")
    private Integer success;
    //未评分
    @TableField("not_scored")
    private Integer notScored;
    //考试用时
    @TableField("time")
    private Integer time;

    //考试批次名称
    @TableField(exist = false)
    private String batchName;
    @TableField("userid")
    private Long  userid;

    //考试批次名称
    @TableField(exist = false)
    private Integer picType;
}
